package org.jeecg.modules.exPingbiao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.exPingbiao.entity.ExPingbiaoExpertDetail;
import org.jeecg.modules.exPingbiao.entity.ExZbcandidateDetailed;
import org.jeecg.modules.exPingbiao.mapper.ExPingbiaoExpertDetailMapper;
import org.jeecg.modules.exPingbiao.service.IExPingbiaoExpertDetailService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 评标明细
 * @Author: jeecg-boot
 * @Date:   2024-11-09
 * @Version: V1.0
 */
@Service
public class ExPingbiaoExpertDetailServiceImpl extends ServiceImpl<ExPingbiaoExpertDetailMapper, ExPingbiaoExpertDetail> implements IExPingbiaoExpertDetailService {
	
	@Autowired
	private ExPingbiaoExpertDetailMapper exPingbiaoExpertDetailMapper;
	
	@Override
	public List<ExPingbiaoExpertDetail> selectByMainId(String mainId) {
		return exPingbiaoExpertDetailMapper.selectByMainId(mainId);
	}

	@Override
	public List<ExPingbiaoExpertDetail> selectByMainIds(String[] mainIds) {
		LambdaQueryWrapper<ExPingbiaoExpertDetail> query = new LambdaQueryWrapper<>();
		query.in(ExPingbiaoExpertDetail::getPingbiaoExpertId, Arrays.asList(mainIds));
		return this.list(query);
	}
}
